﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class controls_usrMoreInfoDropdownButton : System.Web.UI.UserControl
{
    protected string _buttonImageUrl = Resources.ImageResource.MoreInfoButtonImageUrl;
    protected string _workshopUrl = "#";
    protected string _benefitUrl = "#";
    protected string _providercompanyid = "";
    protected string _wstarget = "_blank";
    protected string _bftarget = "_blank";
    protected string _moreInfo = "";
    protected string _rowId = "";
    protected string _ccid = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    public string MoreInfo
    {
        get { return _moreInfo; }
        set { _moreInfo = value; }
    }

    public string RowId
    {
        get { return _rowId; }
        set { _rowId = value; }
    }

    public string ButtonImageUrl
    {
        get { return _buttonImageUrl; }
        set { _buttonImageUrl = value; }
    }

    public string WorkShopNavigateURL
    {
        get { return _workshopUrl; }
        set { _workshopUrl = value; }
    }

    public string BenefitNavigateURL
    {
        get { return _benefitUrl; }
        set { _benefitUrl = value; }
    }

    protected override void OnPreRender(EventArgs e)
    {
        ibtMoreInfo.Attributes.Add("onclick", "HideAllRow('" + _rowId.ToString() + "');ShowHideRow('" + _rowId.ToString() + "','" + _moreInfo + "');return false;");
        ibtMoreInfo.ImageUrl = _buttonImageUrl;
        //HyperLink _lnkTest = new HyperLink();

        //ibtMoreInfo.Attributes.Add("onmouseover", "this.src='" + _lnkTest.ResolveClientUrl(Resources.ImageResource.MoreInfoButtonImageUrl) + "';");
        //ibtMoreInfo.Attributes.Add("onmouseout", "this.src='" + _lnkTest.ResolveClientUrl(Resources.ImageResource.MoreInfoButtonHoverImageUrl) + "';");

        //_lnkTest = null;
    }

    
}
